   var IPaddr = "http://10.141.31.239/Usersmanage/modify/userInfo";     //服务器IP
//var IPaddr = "http://10.139.23.100:8080/Usersmanage/modify/userInfo";   //ZFC  IP

var token = $.cookie("access_token");

$(document).ready(function () {
    $.ajax({
        type: "post",
        url: IPaddr,
        async: true,
        headers: {
            "Authorization": token,
        },
        success: function(result){
            document.getElementById('email').innerHTML = result.data.email;
            document.getElementById('phoneNum').innerHTML = result.data.telephone;
            var bankCardNumTemp = result.data.bankCarbum;
            var bankCardNum = "";
            for(var i = 0; i < bankCardNumTemp.length; i++){
                if(i % 4 == 3){
                    bankCardNum += bankCardNumTemp[i];
                    bankCardNum += " ";
                }else {
                    bankCardNum += bankCardNumTemp[i];
                }
            }
            document.getElementById('bankCardNum').innerHTML = bankCardNum;
            document.getElementById('realName').innerHTML = result.data.identityName;
            document.getElementById('IDNum').innerHTML = result.data.identityCardNum;
        },
        error: function (e) {
            // console.log(e);
        },
    });
});
